Layered graph drawing

Layered graph drawing is a type of graph drawing in which the vertices of a directed graph are drawn in horizontal rows or layers with the edges generally directed downwards.[1][2] It is also known as Sugiyama-style graph drawing after Kozo Sugiyama, who first developed this drawing style.[3]

Contents

Layout algorithm

The construction of a layered graph drawing proceeds in a sequences of steps:

Implementations

In its simplest form, layered graph drawing algorithms may require O(mn) time in graphs with n vertices and m edges, because of the large number of dummy vertices that may be created. However, for some variants of the algorithm, it is possible to simulate the effect of the dummy vertices without actually constructing them explicitly, leading to a near-linear time implementation.[13]

The "dot" tool in Graphviz produces layered drawings.[8] A layered graph drawing algorithm is also included in Microsoft Automatic Graph Layout[14] and in Tulip.[15]

Variations

Although typically drawn with vertices in rows and edges proceeding from top to bottom, layered graph drawing algorithms may instead be drawn with vertices in columns and edges proceeding from left to right.[16] The same algorithmic framework has also been applied to radial layouts in which the graphs are arranged in concentric circles around some starting node[17] and to three-dimensional layered drawings of graphs.[18]

In layered graph drawings with many long edges, edge clutter may be reduced by grouping sets of edges into bundles and routing them together through the same set of dummy vertices.[19] Similarly, for drawings with many edges crossing between pairs of consecutive layers, the edges in maximal bipartite subgraphs may be grouped into confluent bundles.[20]

Drawings in which the vertices are arranged in layers may be constructed by algorithms that do not follow Sugiyama's framework. For instance, it is possible to tell whether an undirected graph has a drawing with at most k crossings, using h layers, in an amount of time that is polynomial for any fixed choice of k and h, using the fact that the graphs that have drawings of this type have bounded pathwidth.[21]

For layered drawings of concept lattices, a hybrid approach combining Sugiyama's framework with additive methods (in which each vertex represents a set and the position of the vertex is a sum of vectors representing elements in the set) may be used. In this hybrid approach, the vertex permutation and coordinate assignment phases of the algorithm are replaced by a single phase in which the horizontal position of each vertex is chosen as a sum of scalars representing the elements for that vertex.[22] Layered graph drawing methods have also been used to provide an initial placement for force-directed graph drawing algorithms.[23]

References

  1. ^ a b c d e f g h i j Di Battista, Giuseppe; Eades, Peter; Tamassia, Roberto; Tollis, Ioannis G. (1998), "Layered Drawings of Digraphs", Graph Drawing: Algorithms for the Visualization of Graphs, Prentice Hall, pp. 265–302, ISBN 9780133016154 .
  2. ^ a b c d e f g h i Bastert, Oliver; Matuszewski, Christian (2001), "Layered drawings of digraphs", in Kaufmann, Michael; Wagner, Dorothea, Drawing Graphs: Methods and Models, Lecture Notes in Computer Science, 2025, Springer-Verlag, pp. 87–120, doi:10.1007/3-540-44969-8_5 .
  3. ^ Sugiyama, Kozo; Tagawa, Shôjirô; Toda, Mitsuhiko (1981), "Methods for visual understanding of hierarchical system structures", IEEE Transactions on Systems, Man, and Cybernetics SMC-11 (2): 109–125, doi:10.1109/TSMC.1981.4308636, MR0611436 .
  4. ^ Berger, B.; Shor, P. (1990), "Approximation algorithms for the maximum acyclic subgraph problem", Proceedings of the 1st ACM-SIAM Symposium on Discrete Algorithms (SODA’90), pp. 236–243, http://dl.acm.org/citation.cfm?id=320176.320203 .
  5. ^ Eades, P.; Lin, X.; Smyth, W. F. (1993), "A fast and effective heuristic for the feedback arc set problem", Information Processing Letters 47: 319–323, doi:10.1016/0020-0190(93)90079-O .
  6. ^ Eades, P.; Lin, X. (1995), "A new heuristic for the feedback arc set problem", Australian Journal of Combinatorics 12: 15–26 .
  7. ^ Chen, Jianer; Liu, Yang; Lu, Songjian; O'Sullivan, Barry; Razgon, Igor (2008), "A fixed-parameter algorithm for the directed feedback vertex set problem", Journal of the ACM 55 (5), doi:10.1145/1411509.1411511 .
  8. ^ a b c d Gansner, E. R.; Koutsofios, E.; North, S. C.; Vo, K.-P. (1993), "A technique for drawing directed graphs", IEEE Transactions on Software Engineering 19 (3): 214–230, doi:10.1109/32.221135 .
  9. ^ Healy, Patrick; Nikolov, Nikola S. (2002), "How to layer a directed acyclic graph", Graph Drawing: 9th International Symposium, GD 2001 Vienna, Austria, September 23–26, 2001, Revised Papers, Lecture Notes in Computer Science, 2265, Springer-Verlag, pp. 16–30, doi:10.1007/3-540-45848-4_2, MR1962416 .
  10. ^ Eades, Peter; Whitesides, Sue (1994), "Drawing graphs in two layers", Theoretical Computer Science 131 (2): 361–374, doi:10.1016/0304-3975(94)90179-1 .
  11. ^ a b Eades, Peter; Wormald, Nicholas C. (1994), "Edge crossings in drawings of bipartite graphs", Algorithmica 11 (4): 379–403, doi:10.1007/BF01187020 .
  12. ^ Mäkinen, E. (1990), "Experiments on drawing 2-level hierarchical graphs", International Journal of Computer and Mathematics 36: 175–181 .
  13. ^ Eiglsperger, Markus; Siebenhaller, Martin; Kaufmann, Michael (2005), "An efficient implementation of Sugiyama’s algorithm for layered graph drawing", Graph Drawing, 12th International Symposium, GD 2004, New York, NY, USA, September 29-October 2, 2004, Revised Selected Papers, Lecture Notes in Computer Science, 3383, Springer-Verlag, pp. 155–166, doi:10.1007/978-3-540-31843-9_17 .
  14. ^ Nachmanson, Lev; Robertson, George; Lee, Bongshin (2008), "Drawing Graphs with GLEE", in Hong, Seok-Hee; Nishizeki, Takao; Quan, Wu, Graph Drawing, 15th International Symposium, GD 2007, Sydney, Australia, September 24-26, 2007, Revised Papers, Lecture Notes in Computer Science, 4875, Springer-Verlag, pp. 389–394, doi:10.1007/978-3-540-77537-9_38, ftp://ftp.research.microsoft.com/pub/TR/TR-2007-72.pdf .
  15. ^ Auber, David (2004), "Tulip – A Huge Graph Visualization Framework", in Jünger, Michael; Mutzel, Petra, Graph Drawing Software, Springer-Verlag, ISBN 9783540008811 .
  16. ^ Baburin, Danil E. (2002), "Some modifications of Sugiyama approach", Graph Drawing, 10th International Symposium, GD 2002, Irvine, CA, USA, August 26–28, 2002, Revised Papers, Lecture Notes in Computer Science, 2528, Springer-Verlag, pp. 366–367, doi:10.1007/3-540-36151-0_36 .
  17. ^ Bachmaier, Christian (2007), "A radial adaptation of the Sugiyama framework for visualizing hierarchical information", IEEE Transactions on Visualization and Computer Graphics 13 (3): 583–594, doi:10.1109/TVCG.2007.1000 .
  18. ^ Hong, Seok-Hee; Nikolov, Nikola S. (2005), "Layered drawings of directed graphs in three dimensions", Proceedings of the 2005 Asia-Pacific Symposium on Information Visualisation (APVis '05), Conferences in Research and Practice in Information Technology, 45, pp. 69–74, http://dl.acm.org/citation.cfm?id=1082326 .
  19. ^ Pupyrev, Sergey; Nachmanson, Lev; Kaufmann, Michael (2011), "Improving layered graph layouts with edge bundling", Graph Drawing, 18th International Symposium, GD 2010, Konstanz, Germany, September 21-24, 2010, Revised Selected Papers, Lecture Notes in Computer Science, 6502, Springer-Verlag, pp. 329–340, doi:10.1007/978-3-642-18469-7_30 .
  20. ^ Eppstein, David; Goodrich, Michael T.; Meng, Jeremy Yu (2007), "Confluent layered drawings", Algorithmica 47 (4): 439–452, doi:10.1007/s00453-006-0159-8 .
  21. ^ Dujmović, V.; Fellows, M.R.; Kitching, M.; Liotta, G.; McCartin, C.; Nishimura, N.; Ragde, P.; Rosamond, F. et al. (2008), "On the parameterized complexity of layered graph drawing", Algorithmica 52 (2): 267–292, doi:10.1007/s00453-007-9151-1 .
  22. ^ Cole, Richard (2001), "Automated layout of concept lattices using layered diagrams and additive diagrams", Proceedings of the 24th Australasian Conference on Computer Science (ACSC '01), pp. 47–53, http://dl.acm.org/citation.cfm?id=545570 .
  23. ^ Benno Schwikowski1, Peter Uetz, and Stanley Fields (2000). "A network of protein−protein interactions in yeast". Nature Biotechnology 18 (12): 1257–1261. doi:10.1038/82360. PMID 11101803. http://www.nature.com/nbt/journal/v18/n12/full/nbt1200_1257.html.